<?php
	class TextFile {
		/**
		 * Load a text file
		 * @name TextFile
		 * @package Core		 
		 * @copyright AZPHPGuru.com		 
		 */
		function __construct($textFile) {
			$this->config = array('fileName' => $textFile);
			if($this->thread = fopen($this->config['fileName'], 'r')) {
				$this->data = fread($this->thread, filesize($this->config['fileName']));
			} else {
				$this->data = '';
			}
		}
	}
?>